package com.superMall.service;

import com.github.pagehelper.PageInfo;
import com.superMall.common.ServerResponse;
import com.superMall.pojo.Product;
import com.superMall.vo.ProductDetailVO;

/**
 * Created by guanwei on 2017/11/19.
 */
public interface IProductService {
    ServerResponse saveOrUpdate(Product product);
    ServerResponse setSaleStatus(Integer productId,Integer status);
    ServerResponse<ProductDetailVO> manageProductDetail(Integer productId);
    ServerResponse<PageInfo> getProductList(int pageNum, int pageSize);
    ServerResponse<PageInfo> searchProduct(String productName, Integer productId, int pageNum, int pageSize);
    ServerResponse<ProductDetailVO> getProductDetail(Integer productId);
    ServerResponse<PageInfo> getProductByKeywordCategory(int pageNum, int pageSize,String orderBy, Integer categoryId, String keyword);
}
